Ext.define('Admin.view.needWater.waterSupplyCal.WSChart2', {
    extend: 'Ext.panel.Panel',
    xtype: 'wsChart2',
    afterComponentLayout: function () {
        var me = this;
        var chartId = me.id + "-body";
        $('#' + chartId).highcharts({
            title: {
                text: ''
            },
            xAxis: {
                categories: ['2000', '2001', '2002', '2003', '2004', '2005', '平均']
            },
            yAxis: {
                title: {
                    text: '径流量'
                },
                plotLines: [{
                    value: 0,
                    width: 1,
                    color: '#808080'
                }]
            },
            tooltip: {
                // valueSuffix: '°C'
            },
            legend: {
                layout: 'horizontal',
                align: 'center',
                verticalAlign: 'top',
                borderWidth: 0
            },
            series: [{
                name: '平均',
                data: [10, 10, 10, 10, 10, 10, 10]
            },
            {
                name: '天然径流量',
                data: [11, 12, 9, 9, 9.5, 11, 10.5]
            }
            ],
            credits: {
                enabled: false
            }
        });
    }
});